import uvicorn
from fastapi import FastAPI, Request
from fastapi.templating import Jinja2Templates
app = FastAPI()
templates = Jinja2Templates('html')
@app.get('/')
def root(req: Request):
    return templates.TemplateResponse('index.html', context={'request': req})


if __name__ == '__main__':
    uvicorn.run(app, port=9102)